package com.dingqb.ktdemo.base


fun main() {
    var a = 41;//100
    var b = 3;//011
    var c = a and b;
    println(c)
    var t = if (a == 4) true else b;
    println(t)
    if (t is Boolean) println("t===boolean")
    if (t is Int) println("t===Integer")
    var v1: Int = 10;
    var v2: Long = 10L;
    println(v1.equals(v2))
    var bb: Int = 3
    println("bb==" + (bb shl 1))
    println("bb==" + (bb shr 3))
    to();
}

fun to(): Unit {
    for (i in 1..100 step 2) {
        println("i==$i");
    }
    for (i in 1 until 100 step 1) {
        println("i==$i");
    }
    for (i in 100 downTo 1 step 2) {
        println("i==$i");
    }

}